package com.heima.article.feign;


import com.heima.article.dto.EntryDto;
import com.heima.article.dto.FollowDto;
import com.heima.article.dto.LikeDto;
import com.heima.article.entity.ApBehaviorEntry;
import com.heima.article.entity.ApFollowBehavior;
import com.heima.article.entity.ApLikesBehavior;
import com.heima.article.entity.ApUnlikesBehavior;
import com.heima.common.dto.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("leadnews-behavior")
public interface BehaviorFeign {


    @PostMapping("/api/v1/follow_behavior")
    public ApFollowBehavior getFollow(@RequestBody FollowDto dto);

    @PostMapping("/api/v1/likes_behavior/getLike")
    public ApLikesBehavior getLike(@RequestBody LikeDto dto);


    @PostMapping("/api/v1/unlikes_behavior/getUnLike")
    public ApUnlikesBehavior getUnLike(@RequestBody LikeDto dto);


    @PostMapping("/api/v1/behavior_entry")
    public ApBehaviorEntry getBehavior(@RequestBody EntryDto dto);

}
